package com.example.nacosconfig9011;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

import javax.security.auth.login.Configuration;

@SpringBootApplication
@EnableDiscoveryClient
public class NacosConfig9011Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(NacosConfig9011Application.class, args);
        String user1= context.getEnvironment().getProperty("user");
        String age= context.getEnvironment().getProperty("age");
        System.out.println("username"+user1+", age "+age);



    }

}
